const mysql = require('mysql')
const config = require('../config/index')
const db = mysql.createPool({
    host: 'localhost',
    user: 'root',
    password: config.datebasePassword,
    database: 'api_server'
})

// db.query('select 1+1 as num', (err, results) => {
//     console.log(results);
// })

module.exports = db